# -*- coding: UTF-8 -*-
import os
import sys


def main():
    if len(sys.argv) != 2:
        print('arg is must be 2')
        return
    print (sys.argv[1])
    name = sys.argv[1]

    filepath = os.path.abspath('.')
    os.rename(filepath+'/Example.vcxproj',          filepath+'/'+sys.argv[1]+'.vcxproj')
    
    os.rename(filepath+'/Example.vcxproj.filters',  filepath+'/'+sys.argv[1]+'.vcxproj.filters')
    os.rename(filepath+'/Example.vcxproj.user',     filepath+'/'+sys.argv[1]+'.vcxproj.user')
    
    print('rename file to '+filepath+'/'+sys.argv[1]+'.vcxproj')

if __name__ == "__main__":
    main()
